<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/9 0009
 * Time: 11:07
 */

namespace app\wap\controller;
use think\Db;


class Dressmodeling  extends  Base
{
        public function index(){
            $type  = intval(input('param.type'));
            $where = 'is_show=1 and sign="mobile" and is_del = 0';
            if($type){
                $where .=' and type ='.$type;
                $this->assign('type',$type);
            }else{
                $where .=' and type =1';
                $this->assign('type',1);
            }

            $data_zmzx = Db::name('zmzx')->where($where)->order('sort desc,id desc')->find();

            $this->assign('data_zmzx',$data_zmzx);
            $this->assign('data_seo',getColumnseo(10));
            return $this->fetch();
        }
}